﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="DusanProject._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    


    <p>
&nbsp;Number1:
        <asp:TextBox ID="txt_Number1" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="txt_Number1" ErrorMessage="Entered value is not number" 
            ForeColor="Red" ValidationExpression="[0-9]+" ValidationGroup="A"></asp:RegularExpressionValidator>
&nbsp;</p>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txt_Number1" ErrorMessage="Number1 is required" 
            ForeColor="Red" ValidationGroup="A"></asp:RequiredFieldValidator>
    </p>
    <p>
        Number2:
        <asp:TextBox ID="txt_Number2" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;
        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
            ControlToValidate="txt_Number2" ErrorMessage="Entered value is not number" 
            ForeColor="Red" ValidationExpression="[0-9]+" ValidationGroup="A"></asp:RegularExpressionValidator>
    </p>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="txt_Number2" ErrorMessage="Number2 is required" 
            ForeColor="Red" ValidationGroup="A"></asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Button ID="btn_Sum" runat="server" Text="Sum" ValidationGroup="A" 
            Width="186px" />
    </p>
    <p>
        Sum:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <asp:TextBox ID="txt_Sum" runat="server"></asp:TextBox>
    </p>
    


</asp:Content>
